package com.apimarket.util.kong;

import com.apimarket.entity.kong.Plugin;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.List;

/**
 * Kong plugin 操作接口
 *
 * @author yyc
 */
public interface KongPluginOperation {
    Plugin addPlugin(Plugin plugin) throws IOException, URISyntaxException;

    Plugin updatePlugin(Plugin plugin) throws IOException, URISyntaxException;

    void deletePlugin(String id) throws IOException, URISyntaxException;

    /**
     * 全局，路由，服务，消费者所属插件统一处理
     */
    List<Plugin> listPlugin(Plugin plugin) throws IOException, URISyntaxException;

}
